import request from '@/utils/request'

// 查询调度执行列表
export function listExecutions(query) {
  return request({
    url: '/scheduling/executions/list',
    method: 'get',
    params: query
  })
}

// 查询调度执行详细
export function getExecutions(id) {
  return request({
    url: '/scheduling/executions/' + id,
    method: 'get'
  })
}

// 新增调度执行
export function addExecutions(data) {
  return request({
    url: '/scheduling/executions',
    method: 'post',
    data: data
  })
}

// 修改调度执行
export function updateExecutions(data) {
  return request({
    url: '/scheduling/executions',
    method: 'put',
    data: data
  })
}

// 删除调度执行
export function delExecutions(id) {
  return request({
    url: '/scheduling/executions/' + id,
    method: 'delete'
  })
}
